﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.Entity.SysEnum;

namespace Zhp.Model.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class UserMenuModel
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        public MenuTypeEnum MenuType { get; set; }

        /// <summary>
        /// 已通过角色分配菜单
        /// </summary>
        public bool IsRoleMenu { get; set; }

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<UserMenuModel> Children { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class UserMenuCreate
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public List<long> MenuIdList { get; set; }
    }
}
